package com.yami.shop.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 新浪短链接配置类
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "sina.shorturl")
public class SinaShortUrlConfig {
    
    /**
     * 新浪短链接API地址
     */
    private String apiUrl = "https://api.weibo.com/2/short_url/shorten.json";
    
    /**
     * 应用AppKey
     */
    private String appKey;
    
    /**
     * 应用密钥
     */
    private String appSecret;
    
    /**
     * 连接超时时间(毫秒)
     */
    private int connectTimeout = 5000;
    
    /**
     * 读取超时时间(毫秒)
     */
    private int readTimeout = 5000;
} 